namespace QMVnSoft.Controls
{
    using QMVnSoft;
    using System;
    using System.ComponentModel;
    using System.Windows.Forms;

    public class LabelControl : Label
    {
        private bool ib_FollowedSystemFont = true;

        protected override void OnCreateControl()
        {
            if (this.FollowedSystemFont)
            {
                this.Font = AppInstance.SystemFont;
            }
            base.OnCreateControl();
        }

        [DefaultValue(true)]
        public bool FollowedSystemFont
        {
            get
            {
                return this.ib_FollowedSystemFont;
            }
            set
            {
                this.ib_FollowedSystemFont = value;
            }
        }
    }
}

